package com.fan.controller;


import com.fan.service.AlipayApiException;
import com.fan.service.PayService;
import com.fan.utils.CommonResults;
import com.sixth.until.CommonResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @program: self-tui-education
 * @description:
 * @author: 老范
 * @create: 2022-05-09 18:11
 **/
@RestController
@RequestMapping("/order/pay")
public class PayController {
//    @Autowired
//    private AliPayService aliPayService;
//    @Resource
//    private PayService payService;


//    @ApiOperation(("支付操作"))
//    @GetMapping("/allPay/{id}/{HuiYuanId}")
//    public String allPay(@PathVariable("id") String id, @PathVariable("HuiYuanId") String HuiYuanId) throws AlipayApiException {
//        String allPay = aliPayService.allPay(id, HuiYuanId);
//
//        return allPay;
//    }


    //获取支付的状态
//    @PostMapping("getPayStatus/{orderNo}")
//    public CommonResults getPayStatus(@PathVariable String orderNo){
//        return payService.getStatus(orderNo);
//    }
}
